<?php

namespace App;

use Illuminate\Foundation\Auth\User as Authenticatable;

class User extends Authenticatable
{
    protected $table = 'users';

    //指定主键
    protected $primaryKey = 'id';


    protected $fillable = [
        'name', 'email', 'password', 'phone', 'describe','image'
    ];

    //自动维护时间戳
    public $timestamps = true;

    //定制时间戳格式
//    protected $dateFormat = 'U';

    protected $hidden = [
        'password', 'remember_token',
    ];
}
